{extend name="public/base"}
{block name='sep'}
<!-- 首页导航下搜索 -->
<div class="fly-case-header">
  <form action="{:url('home/search/index')}" method="get" class="fly-extend-banner-search">
    <div class="layui-inline">
      <input placeholder="请输入文档关键字"   name="searchword" autocomplete="off" value="{$searchword|default=''}" class="layui-input">
    </div>
    <button class="layui-btn"><i class="layui-icon">&#xe615;</i></button>
  </form>

</div>
{/block}
{block name='main'}
<div class="layui-container search_word" >
    <div class="fly-panel-title fly-filter" style="border-bottom:0;"> 搜索<span>“{$searchword|default=''}”</span>的相关结果 </div>
</div>
<!-- 主体开始 -->
<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md9">
      <div class="fly-panel" style="margin-bottom: 0;">
        <ul class="fly-list">
          {mqcms:doc type="lists" order="create_time desc" pagenum="20"  search="$searchword"}
          {empty name="data['list']"}
          <div class="fly-none" style="min-height: 800px;">没有相关数据</div>
          {/empty}
          {volist name="data['list']" id="vo"}
          <li>
            <a href="{:url('doc/doccon',array('id'=>$vo['id']))}" class="fly-avatar">
              <img src="{:docfile($vo.html,$vo.imgurl)}" alt=""></a>
            <h2 class="mleft10"><a href="{:url('doc/doccon',array('id'=>$vo['id']))}">
              <i class="ic ic-{$vo.ext|strtolower}"></i>{$vo.title|getsearchtitle=$searchword,###|raw}</a></h2>
            <div class="fly-list-info mleft10 ">
              <p class="intro">{$vo.intro}</p>
              <span>贡献者：{$vo.uid|getusername} </span>
              <span>时间：{$vo.create_time|fdate}</span>
              <span>浏览：{$vo.hits}</span>
              <span>下载：{$vo.downnum}</span>
            </div>
            <div class="fly-list-badge">
                  <span class="layui-badge jifen">
                    {if $vo.score == 0}
                     免费
                    {else/}
                    {$vo.score}{:config('web_config.score_name')}
                    {/if}</span>
              {if $vo.top == 1}
              <span class="layui-badge zhiding">置顶</span>
              {/if}
              {if $vo.choice == 1}
              <span class="layui-badge jinghua">精华</span>
              {/if}
            </div>
          </li>
          {/volist}
          {/mqcms:doc}
        </ul>
        <div style="text-align: center">
          <div class="laypage-main">
            {$data['page']|raw}
          </div>
        </div>

      </div>
    </div>
    <div class="layui-col-md3">
      <!-- 右侧分类 -->
      <dl class="fly-panel fly-list-one">
        <dt class="fly-panel-title">编辑推荐</dt>
        {mqcms:doc type="lists" choice="1"  order="create_time desc" }
        {empty name="data['list']"}
        <div class="fly-none">没有相关数据</div>
        {/empty}
        {volist name="data['list']" id="vo" offset="0" length="10"}
        <dd>
          <a href="{:url('doc/doccon',array('id'=>$vo['id']))}"><i class="ic ic-{$vo.ext|strtolower}"></i> {$vo.title} </a>
          <span><i class="iconfont icon-liulanyanjing"></i>&nbsp;{$vo.hits}</span>
        </dd>
        {/volist}
        {/mqcms:doc}
      </dl>
      <!-- 右侧分类结束 -->

      <!-- 广告 -->

      {include file="public/flink" }

    </div>
  </div>

</div>
<!-- 主体结束 -->
<script>
layui.config({
  version: "3.0.0"
  ,base: '__PUBLIC__/theme/blueideal/mods/' //这里实际使用时，建议改成绝对路径
}).extend({
  fly: 'index'
}).use('fly');
</script>
{/block}